<!DOCTYPE html>
<html>
<head>
<title> {:C('SITE_NAME')}</title>
<meta name="keywords" content="{$seo_keywords}" />
<meta name="description" content="{$seo_description}">
<tc_include file="Public:head" />
<link href="__TMPL__Public/assets/css/paper.css"
	rel="stylesheet">
<style type="text/css">
.query_re {
    width: 694px;
    border-bottom: 2px solid #d2d2d2;
    padding: 33px 0;
    padding-left: 25px;
}

.query_re1 {
    width: 694px;
    border-bottom: 2px solid #d2d2d2;
    padding: 33px 0;
    padding-left: 25px;
    background: #fcfafb;
}

.query_re_t {
    width: 694px;
    height: 35px;
    color: #dd5205;
    font-size: 18px;
    line-height: 35px;
    font-weight: 700;
}

.query_re_t span {
    width: 43px;
    height: 35px;
    color: #FFF;
    background: #dd5205;
    display: block;
    text-align: center;
    line-height: 35px;
    float: left;
    margin-right: 10px;
}

.query_re_t  h4 {
    max-width: 50%;
    height: 35px;
    float: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.query_re_t .ks_zt1,.query_re_t .ks_zt2,.query_re_t .ks_zt3 {
    width: 87px;
    height: 22px;
    margin-top: 7px;
    margin-left: 10px;
    font-size: 16px;
    color: #8d8d8d;
    line-height: 22px;
}

.query_re_t .ks_zt1 {
	background:#dd2005;
	-moz-border-radius:5px;
	-webkit-border-radius:5px;
	border-radius: 5px;
}

.query_re_t .ks_zt2 {
	background:#dd2005;
	-moz-border-radius:5px;
	-webkit-border-radius:5px;
	border-radius: 5px;
    color: #FFF;
}

.query_re_t .ks_zt3 {
	background:#dd2005;
	-moz-border-radius:5px;
	-webkit-border-radius:5px;
	border-radius: 5px;
    color: #FFF;
}

.query_re_xx {
    margin: 10px 30px;
}

.query_re_xx td {
    height: 35px;
    line-height: 35px;
}

.query_re_xx .ks_xx_t {
    font-weight: 700;
    font-size: 16px;
}

.query_re_bt1 {
    width: 157px;
    height: 47px;
    margin-top: 15px;
    margin-right: 74px;
    _margin-right: 37px;
    float: left;
}

.query_re_bt1 input {
    width: 155px;
    height: 45px;
    border: 1px solid #246FA0;
    color: #FFF;
    border-radius: 3px;
    background: #2A80B9;
    font-size: 16px;
    font-weight: 700;
    cursor:pointer;
}

.query_re_bt7 {
    width: 157px;
    height: 47px;
    margin-top: 15px;
    _margin-right: 37px;
    float: left;
}
.query_re_bt7 input {
    width: 155px;
    height: 45px;
    border: 1px solid #014886;
    color: #FFF;
    border-radius: 3px;
    background: #2A80B9;
    font-size: 16px;
    font-weight: 700;
    cursor:pointer;
}

.query_re_bt9 {
}
.query_re_bt9 input {
    width: 155px;
    height: 45px;
    border: 1px solid #27ae62;
    color: #FFF;
    border-radius: 3px;
    background: #2dcc70;
    font-size: 16px;
    font-weight: 700;
    cursor:pointer;
}

.query_re_bt1 input:hover {
    background: #2471A5;
}

.query_re_bt2 {
    width: 157px;
    height: 47px;
    margin-top: 15px;
    margin-right: 74px;
    padding-bottom: 20px;
    _margin-right: 37px;
    float: left;
}

.query_re_bt2 input {
    width: 155px;
    height: 45px;
    border: 1px solid #c94f64;
    color: #FFF;
    border-radius: 3px;
    background: #f0526b;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.query_re_bt10 {
}

.query_re_bt10 input {
    width: 155px;
    height: 45px;
    border: 1px solid #c94f64;
    color: #FFF;
    border-radius: 3px;
    background: #f0526b;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.query_re_bt2 input:hover{
    background: #e9415c;
}
.query_re_bt6 {
    width: 157px;
    height: 47px;
    margin-top: 15px;
    margin-right: 74px;
    _margin-right: 37px;
    float: left;

}
.query_re_bt6 input {
    width: 155px;
    height: 45px;
    border: 1px solid #2d3e50;
    color: #FFF;
    border-radius: 3px;

    background: #c9c9c9;
    font-size: 16px;
    font-weight: 700;
}

.query_re_bt3 {
    width: 157px;
    height: 47px;
    margin-top: 15px;
    float: left;
}
.query_re_bt3 input {
    width: 155px;
    height: 45px;
    border: 1px solid #2d3e50;
    color: #FFF;
    border-radius: 3px;

    background: #c9c9c9;
    font-size: 16px;
    font-weight: 700;
}

.query_re_bt4 {
    width: 157px;
    height: 47px;
    margin-top: 15px;
    margin-right: 74px;
    _margin-right: 37px;
    float: left;
}

.query_re_bt4 input {
    width: 155px;
    height: 45px;
    border: 1px solid #b5b5b5;
    color: #FFF;
    border-radius: 3px;
    background: #34495e;
    font-size: 16px;
    font-weight: 700;
}
.bgcls input{
    background: #f0526b!important;
}
.query_re_bt4 input:hover{
    cursor:pointer;
    opacity:.8;
}
.query_re_bt3 input:hover{
    cursor:pointer;
    opacity:.8;
}

.query_re_bt5 {
    width: 157px;
    height: 47px;
    margin-top: 15px;
    margin-right: 74px;
    _margin-right: 37px;
    float: left;
}

.query_re_bt5 input {
    width: 155px;
    height: 45px;
    border: 1px solid #b5b5b5;
    color: #FFF;
    border-radius: 3px;
    background: #c9c9c9;
    font-size: 16px;
    font-weight: 700;
}
</style>
</head>
<body class="boxed">
	<div class="body">
		<!-- 通用头部 -->
		<div id="top"><tc_include file="Public:front_nav" /></div>
		<div class="shade-bg">
			<img src="__TMPL__Public/front/img/sha.png" class="slidershadow" alt="">
		</div>
		<div class="container">
			<div class="row">
				<div class="main_content clearfix">
					<div class="col-sm-2 pad-left">
						<php>$menu_index='1-2';</php>
						<tc_include file="Public:user_menu" />
					</div>
					<div class="col-sm-10 pad-right">
						<div class="caption f-mb20">
							<p class="caption-lf">
								<span class="name">考试成绩查询</span>
							</p>
							<p class="caption-rt">
								<a href="javascript:void(0)" style="cursor: pointer;display:none"
									class="other trigger-set-userApp-detail"><i> </i>设置考试科目</a>
							</p>
						</div>
						<div class="cap-chose bor f-mb20">
							<ul class="pracl-mlist">
								<li><a <eq name="exam_term_id" value="0"> class="this"</eq> href="{:U('paper/exam_his_list')}">全部</a></li>
								<foreach name="exam_terms" item="term">
								<li><a <eq name="exam_term_id" value="$key"> class="this"</eq> href="{:U('paper/exam_his_list',array('exam_term_id'=>$key))}">{$term}</a></li>
								</foreach>							
							</ul>
							<div class="pracl-nav">
								<div class="tagnav clearfix">
									<dl class="clearfix">
										<dt>工种：</dt>
										<dd <empty name="ques_term_id"> class="this "</empty>>
											<a href="{:U('paper/exam_his_list')}"> 全部 </a>
										</dd>
										<foreach name="question_terms" item="item_term">
										<dd <eq name="ques_term_id" value="$key"> class="this "</eq>>
											<a href="{:U('paper/exam_his_list',array('ques_term_id'=>$key,'exam_term_id'=>$exam_term_id))}"> {$item_term} </a>
										</dd>
										</foreach>
									</dl>
								</div>
							</div>
						</div>
						<div class="pracl-dalist bor">
							<div class="paper-tit">
								<a href="{:U('',array('sort_type'=>1))}">默认</a> <a
									href="{:U('',array('sort_type'=>(1-$sort_type)))}"><i class="{$sort_type?'zi-up':'zi-down'}"></i>考试时间</a>
							</div>
						</div>
						<div class="bor">
							<empty name="exam_list">
							<div style="text-align: center">暂无数据</div>
							</empty>
							<div class="query_re_xx">
								<foreach name="exam_list" item="item">
								<div class="query_re">
									<div class="query_re_t">													
										<php>$emam_state=sp_get_exam_state($item);</php>
										<span>{$key+1}</span>
										<h4 title="{$item.exam_name}" style="font-weight:700">{$item.exam_name}</h4>
										<span class="ks_zt2">{:C('EXAM_STATE')[$emam_state]}</span>
									</div>
									<div class="query_re_xx">
										<table width="99%" border="0" cellspacing="0" cellpadding="0">
											<tbody>
												<tr class="ks_xx_t">
													<td>开始考试时间:{$item['exam_start_time']}</td>
													<td>考试结束时间:{:sp_get_end_time_str($item['exam_start_time'],$item['exam_duration'])}</td>
												</tr>
												<tr>
													<td>总分值：{$item['paper_score']}分</td>
													<td>考试时长：{$item['exam_duration']}分钟</td>
												</tr>
												<tr>
													<td>报名方式：{:sp_get_signin_type_name($item['signin_type'])}</td>
													<td>已报名人数：{$item['user_count']?$item['user_count']:0}人</td>
												</tr>
											</tbody>
										</table>
									</div>
									<table width="99%" border="0" cellspacing="0" cellpadding="0">
										<tbody>
											<tr class="ks_xx_t">
												<!-- <td>
												<php>if(sp_get_exam_state($item)==1&&$item['signin_type']==1){</php>
												<div class="query_re_bt1">
													<a target="_parent" href="{:U('paper/exam_info',array('id'=>$item['id']))}"><input type="button" value="我要报名"></a>
												</div>
												<php>}else{</php>
												<div class="query_re_bt5">
													<input type="button" value="我要报名">
												</div>
												<php>}</php>
												</td> -->
												<td>
												<php>if(sp_get_exam_state($item)==3&&$item['exam_user_status']<2){</php>															
												<div class="query_re_bt2">
													<a target="_parent" href="{:U('paper/exam_info',array('id'=>$item['id']))}"><input type="button" value="参加考试"></a>
												</div>
												<php>}else{</php>
												<div class="query_re_bt5">
													<input type="button" value="参加考试">{$exam_state}
												</div>
												<php>}</php>
												</td>
												<td>
												<php>if(sp_get_exam_state($item)==4||$item['exam_user_status']==2){</php>
												<div class="query_re_bt4"><a target="_parent" href="{:U('paper/exam_result',array('exam_id'=>$item['id']))}" class="zt-go"><input type="button" value="成绩查询"></a></div>
												<php>}else{</php>
												<div class="query_re_bt5"><input type="button" value="成绩查询"></div>{$exam_state}
												<php>}</php>
												</td>
											</tr>
										</tbody>
									</table>
								</div>
								</foreach>
							</div>
						</div>
						<div class="pagination">{$page}</div>
					</div>
				</div>
			</div>		
		</div>
		<tc_include file="Public:footer" />
	</div>
	<!-- JavaScript -->
	<tc_include file="Public:scripts" />
</body>
</html>